gh-145455: Show output of blurb & sphinx-build version commands#145457
gh-145455: Show output of blurb & sphinx-build version commands#145457encukou merged 1 commit intopython:mainfrom
Conversation
In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Switch `blurb` to output a version on a single line (`--version` rather than `help`), and don't redirect stderr, to show warnings and failures. Also, don't redirect stdout. This results in two extra lines with version info, which get drowned in typical Sphinx output, and can be helpful when debugging.
hugovk
left a comment
There was a problem hiding this comment.
Thanks!
I think this is worth backporting to security branches as well.
This first came up in a security branch, and it's more likely for their old dependencies to break, and this fix will help debug.
|
Yeah. |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
GH-145461 is a backport of this pull request to the 3.14 branch. |
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
GH-145462 is a backport of this pull request to the 3.13 branch. |
GH-145457) (GH-145462) In gh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
…ommands (pythonGH-145457) (python#145461) pythongh-145455: Show output of blurb & sphinx-build version commands (pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
GH-145489 is a backport of this pull request to the 3.10 branch. |
|
GH-145490 is a backport of this pull request to the 3.12 branch. |
|
GH-145491 is a backport of this pull request to the 3.11 branch. |
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
In gh-145455, an outdated dependency caused an import error that was not printed out (
2>&1); the message instead said that the tools are missing.Don't redirect stderr, to show warnings and failures.
Also, switch
blurbto output a version on a single line (--versionrather thanhelp), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging.📚 Documentation preview 📚: https://cpython-previews--145457.org.readthedocs.build/